package ru.bytedog.oiot.counter.bot.entity;

import jakarta.persistence.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@Entity
@Table
@Accessors(chain = true)
public class UserOtp {
    @Id
    @GeneratedValue
    private Long Id;
    @Column(nullable = false)
    private LocalDateTime createTime;
    @Column(nullable = false)
    private LocalDateTime actualTime;
    @Column(nullable = false)
    private String code;
    @ManyToOne
    private BotUser user;
    @Column
    private Boolean success;
}
